package com.hll.spring.anno.dao;

import com.hll.spring.anno.DBUtils;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * @author hll
 * @create 2022-05-11 12:43
 */
// 默认bean名字=userDaoImpl,可以显式声明     @Repository("name")
// 其实和 @Component(value = "userDaoImpl") 效果一致 === <bean id="userDaoImpl" class=".."/>
@Repository
@Data
public class UserDaoImpl implements UserDao {
  @Autowired private DBUtils dbUtils;
}
